#mkdir gyro
## shellcheck disable=SC2164
#cd gyro
echo rock | sudo -S sudo apt-get update
sudo apt-get upgrade -y

echo rock | sudo -S ls

#cd ~/gyro/data/config/debian/
#sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak
#sudo cp -a /etc/lightdm/lightdm.conf* ./
sudo cp -af ./lightdm.conf /etc/lightdm/lightdm.conf
sudo chown root:root /etc/lightdm/lightdm.conf

#sudo cp /etc/pam.d/lightdm-autologin /etc/pam.d/lightdm-autologin.bak
#sudo cp -a /etc/pam.d/lightdm-autologin* ./
sudo cp -af ./lightdm-autologin /etc/pam.d/lightdm-autologin
sudo chown root:root /etc/pam.d/lightdm-autologin

sudo cp -af autostartBOEVXA.sh ~/gyro/

sudo apt-get install python3-pip -y
sudo apt-get install cmake build-essential -y
sudo apt-get install qt5-default qtcreator -y
sudo apt install qt5-qmake qtbase5-dev qtbase5-dev qtdeclarative5-dev qtwebengine5-dev kwin-dev qml-module-qt-labs-platform -y
sudo apt-get update -y
sudo apt-get install python3-pyqt5 -y
sudo pip3 install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install --upgrade setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install --upgrade wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install pyinstaller -i https://pypi.tuna.tsinghua.edu.cn/simple
sudo pip3 install PyOpenGL PyOpenGL_accelerate -i https://pypi.douban.com/simple

sudo pip3 install -r requirements.txt -i https://pypi.douban.com/simple

sudo apt-get upgrade -y

echo "end"